package com.dubbo.consumer.service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dubbo.provider.pojo.TestDb;
import com.dubbo.provider.pojo.TestDb2;
import com.dubbo.provider.service.ITestDb2Service;
import com.dubbo.provider.service.ITestDbService;
import io.seata.core.context.RootContext;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.stereotype.Service;

@Service
public class ConsumerService {



    @Reference // 引入远程接口
    private ITestDb2Service testDbService2;

    @GlobalTransactional(rollbackFor = Exception.class)
    public void testSeata() {

    }


}
